<%@page import="java.util.ArrayList"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%@page import="controller.Utils"%>
<%@page import="java.net.InetAddress"%>
<%
String ip = (String) request.getAttribute("ip");
String title = "Best Review , Analysis and evaluation of domain information";
String description = "BestReviewDomain - best review and free analytic for webmasters that gathers detailed information on your domain : traffic details, Technology language, whois, ranking info, domain backlinks,domain IP, DNS record, optimization, network tools, seo tools...don’t install and very easy, review to directly use our services for your domain";
String keywords = "bestreviewdomain.com,Best review domain,  Server information, review domain analysis, domain traffic details, review domain backlinks website IP, review domain ranking info";
%>
<%
Cache cache=null;
try {
    cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
   e.printStackTrace();
   
}
ArrayList<String> siteview = null;
if(cache.containsKey("updates"))
{
	siteview = (ArrayList<String>) cache.get("updates");
}
ArrayList<String> view = null;
if(cache.containsKey("view"))
{
	view = (ArrayList<String>) cache.get("view");
}
%>
<script type="text/javascript" src="http://ip-geo.appspot.com/geo_data.js"></script>
<jsp:include page="/layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
	<jsp:param name="index" value="true"/>
</jsp:include>

		<section id="content">
        	<div id="content_inner">
            	<div class="rotarapes"></div>
            	<div id="local_maps" class="clearafter">
                	<div class="mapImg left">                    	
                    	<script type='text/javascript'>
							document.write(geo.generate_map(640, 300));
							
						</script>
                    </div>
                    <div class="right simpleBox">
                    	<h3 class="title">Your ip : <%=ip %></h3>
                        <div class="separator"></div>
                        <div class="adv-1">
                    		<%@ include file='/adv/left.jsp'%>
                        </div>
                    </div>
                </div>
                <div class="recentSite simpleBox">
                	<h3 class="title redColor">Recent site update</h3>
                	<ul class="recentSiteListing clearafter">
                    	<%
						if(siteview!=null)
						{
							for(int i=0;i<siteview.size();i++)
							{
						%>
								<li><a href="/d/<%=siteview.get(i)%>"><%=siteview.get(i)%></a></li>
						<%
							}
						}
						%>
                    </ul>
                </div>
                <div class="recentSite simpleBox">
                	<h3 class="title redColor">Recent site view</h3>
                	<ul class="recentSiteListing clearafter">
                    	<%
							if(view!=null)
							{
								for(int j=0;j<view.size();j++)
								{
								%>
									<li><a href="/d/<%=view.get(j) %>" rel="nofollow"><%=view.get(j) %></a></li>
						<%
								}
							}
						%>
                    </ul>
                </div>
            </div>
        </section>

<%@ include file='/layout/footer.jsp'%>		